package com.itheima.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class dateUtils {
    private String birthday;

    public String birthday(){
       SimpleDateFormat sdf= new  SimpleDateFormat("yyyy-MM-dd") ;
        Date date = new Date();
        birthday = sdf.format(date);
        return birthday;
    }

    public dateUtils(String birthday) {
        this.birthday = birthday;
    }

    public dateUtils() {
    }

    @Override
    public String toString() {
        return "dateUtils{" +
                "birthday=" + birthday +
                '}';
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
}
